#ifndef SELF3DWINDOW_H
#define SELF3DWINDOW_H

#include <Qt3DExtras/qt3dwindow.h>
#include <QMouseEvent>
#include <QDebug>
#include <QObject>
#include <QWidget>

class Self3DWindow : public Qt3DExtras::Qt3DWindow
{
    Q_OBJECT

public:
    Self3DWindow();

protected:
    void mouseMoveEvent(QMouseEvent *event);
    void mousePressEvent(QMouseEvent *event);
    void wheelEvent(QWheelEvent *event);

signals:
    void sigPosition(int,int);  //获取鼠标单击处的坐标值信号
    void sigMouseDrag(int,int);     //鼠标拖动旋转信号
    void sigZoom(int);          //鼠标滚轮缩放信号,值为1表示放大，-1表示缩小

private:
    int mPressPosX;
    int mPressPosY;
};

#endif // SELF3DWINDOW_H
